home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2566 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  714 b 

  1. Path: news.mcs.net!usenet
  2. From: stevecoh.mcs.com
  3. Newsgroups: comp.lang.c++
  4. Subject: doubly dimensioned arrays
  5. Date: 18 Jan 1996 13:54:12 GMT
  6. Organization: MCSNet Internet Services
  7. Message-ID: <4dlje4$bnf@News1.mcs.net>
  8. NNTP-Posting-Host: stevecoh.pr.mcs.net
  9. X-Newsreader: AIR News 3.X (SPRY, Inc.)
  10.  
  11. how must the variable p be declared so that the following code
  12. int m,n; ... p=new int[m][n]; ... p[m][n] 
  13. gives the expected result, that is the int at the nth column of the mth 
  14. row?
  15. Incidentally can anyone explain to me why my previous attempts to post 
  16. this message were truncated?
  17. I put all the code tersely in one row here because in my previous 
  18. attempts the second lines and everything else were left off.
  19.  
  20.  
  21.